package com.css.fxfzfxqh.modules.buildings.calculationTasks.service;

import com.css.fxfzfxqh.modules.buildings.calculationTasks.entity.CalculationTasks;
import com.css.fxfzfxqh.modules.buildings.calculationTasks.entity.FxqhBuildingPriceTaskEntity;
import com.css.fxfzfxqh.modules.buildings.calculationTasks.entity.FxqhHosPeoTaskEntity;
import com.css.fxfzfxqh.modules.buildings.definitiveEvaluation.resistEarthquakesDE.entity.ResistEarthquakesDE;

import java.util.List;
import java.util.Map;

public interface CalculationTasksService {
    String getYear(CalculationTasks param) throws Exception;

    String addTask(CalculationTasks param) throws Exception;

    String getProgress();

    void cancelCopy();

    CalculationTasks findById(String id);

    CalculationTasks getTasks();

    String settingTasks(String id);

    Map<String, Object> getPage(int curPage, int pageSize, CalculationTasks param);

    void upDateTasks(CalculationTasks param) throws Exception;

    void deleteById(String id);

    Map<String, String> getRole();

    void saveFxqhBuildingPriceTask(FxqhBuildingPriceTaskEntity entity);
    void saveFxqhHosPeoTask(FxqhHosPeoTaskEntity entity);

    void delFxqhBuildingPriceTask(String taskId);
    void delFxqhHosPeoTask(String taskId);

    List<FxqhBuildingPriceTaskEntity> getList1ByTaskId(String taskId);
    List<FxqhHosPeoTaskEntity> getList2ByTaskId(String taskId);

    void updateById(CalculationTasks entity);
}

